Tim-Philipp Müller [Sun, 12 Feb 2017 00:42:37 +0000 (00:42 +0000)]
meson: gtk: add missing source file
Tim-Philipp Müller [Sat, 11 Feb 2017 20:15:25 +0000 (20:15 +0000)]
meson: make sure gdk/gdkenumtypes.h is generated for users of libgtk_dep
Add libgdk_dep as dependency to the libgtk_dep declare_dependency(), so
that the generated gdk includes are generated before anything is built
that tries to include gtk headers (such as various tests that don't depend
on gdk directly).
Tim-Philipp Müller [Sun, 5 Feb 2017 13:41:38 +0000 (13:41 +0000)]
Rename generated gtktypefuncs.c to gtktypefuncs.inc
This is needed for the Meson port, a file name .c that's included
and shouldn't be compiled into an object is difficult to manage
otherwise. And it's not actually a valid .c file anyway.
Tim-Philipp Müller [Sun, 5 Feb 2017 11:41:14 +0000 (11:41 +0000)]
meson: add graphene subproject that can be used as fallback
Timm Bäder [Thu, 3 Nov 2016 08:47:00 +0000 (09:47 +0100)]
meson: update build files
Timm Bäder [Mon, 26 Sep 2016 10:51:17 +0000 (12:51 +0200)]
meson: Sort input files by name
Timm Bäder [Sat, 24 Sep 2016 15:35:10 +0000 (17:35 +0200)]
meson: Conditionally check for dependencies
Timm Bäder [Sat, 24 Sep 2016 10:46:10 +0000 (12:46 +0200)]
meson: Check for more libraries
Timm Bäder [Sat, 24 Sep 2016 09:31:00 +0000 (11:31 +0200)]
meson: build some more tests
Timm Bäder [Sat, 24 Sep 2016 09:07:34 +0000 (11:07 +0200)]
meson: build tests/visuals
Timm Bäder [Sat, 24 Sep 2016 08:43:22 +0000 (10:43 +0200)]
meson: Build gtk utils
Timm Bäder [Sat, 24 Sep 2016 08:18:26 +0000 (10:18 +0200)]
meson: Install libgtk and libgdk
Timm Bäder [Sat, 24 Sep 2016 08:04:23 +0000 (10:04 +0200)]
gtk/meson: Read dirs from options
Timm Bäder [Sat, 24 Sep 2016 07:38:10 +0000 (09:38 +0200)]
Build examples
Timm Bäder [Sat, 24 Sep 2016 06:45:08 +0000 (08:45 +0200)]
meson: Build all tests in tests/
Timm Bäder [Sat, 24 Sep 2016 06:44:53 +0000 (08:44 +0200)]
meson: Also check for sincos
Timm Bäder [Sat, 24 Sep 2016 06:15:28 +0000 (08:15 +0200)]
meson.build: Add more required versions
...build tests/ and testsuite/, properly define gtk_version, etc.
Tim-Philipp Müller [Tue, 20 Sep 2016 15:46:30 +0000 (16:46 +0100)]
meson: figure out wayland-protocols pkgdatadir via pkg-config
Instead of hardcoding the location.
Timm Bäder [Tue, 20 Sep 2016 19:25:39 +0000 (21:25 +0200)]
meson: Use -Bsymbolic
Timm Bäder [Tue, 20 Sep 2016 15:02:12 +0000 (17:02 +0200)]
meson: Require gtkmarshal_h before we build gtk
Timm Bäder [Tue, 20 Sep 2016 14:34:33 +0000 (16:34 +0200)]
meson: Disable broadway build
Timm Bäder [Tue, 20 Sep 2016 14:29:14 +0000 (16:29 +0200)]
meson: Generate demos.h for gtk3-demo
Timm Bäder [Tue, 20 Sep 2016 10:13:28 +0000 (12:13 +0200)]
meson: Build gtk3-demo
Timm Bäder [Tue, 20 Sep 2016 09:10:27 +0000 (11:10 +0200)]
meson: build gtk/ again
Timm Bäder [Sat, 10 Sep 2016 18:40:02 +0000 (20:40 +0200)]
build: Generate wayland protocol files
Timm Bäder [Sat, 10 Sep 2016 18:39:07 +0000 (20:39 +0200)]
wayland: Include generated sources from builddir, not srcdir
Timm Bäder [Sat, 10 Sep 2016 16:10:11 +0000 (18:10 +0200)]
gentypefuncs.py: Use python3
Tim-Philipp Müller [Sat, 10 Sep 2016 11:10:59 +0000 (12:10 +0100)]
meson: replace gentypefuncs.d with python script
Timm Bäder [Sat, 10 Sep 2016 04:58:16 +0000 (06:58 +0200)]
gtk major version
Timm Bäder [Fri, 9 Sep 2016 20:02:21 +0000 (22:02 +0200)]
meson: Use xrandr
Timm Bäder [Tue, 23 Aug 2016 06:21:54 +0000 (08:21 +0200)]
meson: make gtk buildable
x11 only
Timm Bäder [Mon, 22 Aug 2016 19:26:38 +0000 (21:26 +0200)]
meson: Build gtk marshallers
And fix libgtk_dep/libgdk_dep to link_with the shared lib
Timm Bäder [Sun, 21 Aug 2016 16:01:14 +0000 (18:01 +0200)]
meson: Add unit test files
Timm Bäder [Sun, 21 Aug 2016 16:00:19 +0000 (18:00 +0200)]
gtk: Generate gresources file
Timm Bäder [Sun, 21 Aug 2016 15:16:03 +0000 (17:16 +0200)]
meson: Add options for x/wayland/broadway backends
Timm Bäder [Sun, 21 Aug 2016 14:00:37 +0000 (16:00 +0200)]
Meson build v2
Emmanuele Bassi [Mon, 15 Aug 2016 08:03:57 +0000 (09:03 +0100)]
Add Meson build files
Original work by: Jussi Pakkanen <jpakkane@gmail.com>
https://bugzilla.gnome.org/show_bug.cgi?id=769881
Emmanuele Bassi [Tue, 18 Apr 2017 14:14:35 +0000 (15:14 +0100)]
gsk: Include the private header
Both gskprivate.c and gskvulkanrenderer.c call `gsk_ensure_resources`
but fail in clude `gskprivate.h`, where the function is declared.
Emmanuele Bassi [Tue, 18 Apr 2017 17:31:27 +0000 (18:31 +0100)]
Remove gdkkeysyms-compat.h
The compatibility header was needed after GTK+ 3.0 renamed the key
symbols from `GDK_*` to `GDK_KEY_*` to avoid collisions.
Timm Bäder [Sat, 24 Sep 2016 07:36:32 +0000 (09:36 +0200)]
examples/drawing: Don't call gtk_main_quit
This is a GtkApplication so it will do the right thing when closing the
window.
Timm Bäder [Sun, 21 Aug 2016 13:43:29 +0000 (15:43 +0200)]
fallback-c89: Include config.h
It holds all the HAVE_<func> definitions.
Emmanuele Bassi [Fri, 28 Apr 2017 14:07:04 +0000 (15:07 +0100)]
gdk: Remove GdkX11DisplayManager from the build
We don't instantiate it, and we don't use it any more.
Matthias Clasen [Tue, 2 May 2017 20:16:05 +0000 (16:16 -0400)]
Remove the gdk backend API too
The GTK+ level API for this is already gone.
Daniel Boles [Tue, 2 May 2017 11:22:20 +0000 (12:22 +0100)]
Scale: Improve documentation of set_has_origin()
Properly format the property name, and avoid saying scale so many times.
Daniel Boles [Tue, 2 May 2017 11:18:26 +0000 (12:18 +0100)]
Scale: Explain how to round value when !draw-value
Scale:digits is (now, again) ineffective if Scale:draw-value is FALSE.
To get rounding in that case, the base Range:round-digits must be used.
Emmanuele Bassi [Tue, 2 May 2017 11:36:15 +0000 (12:36 +0100)]
Recover assets rendering script
It was unintentionally removed by commit
f6cbd076.
Timm Bäder [Sun, 30 Apr 2017 19:57:15 +0000 (21:57 +0200)]
widget-factory: Fix listbox row alignment
Timm Bäder [Sun, 30 Apr 2017 19:53:05 +0000 (21:53 +0200)]
Chain up in size-allocate implementations
Otherwise we're not setting an allocation at all.
Matthias Clasen [Mon, 1 May 2017 16:57:05 +0000 (12:57 -0400)]
Remove GtkWindow::hide-titlebar-when-maximized
This was only every implemented under X11, and with CSD,
this is clearly in the application realm. We should not
pretend that we can support it on the toolkit level.
https://bugzilla.gnome.org/show_bug.cgi?id=775061
Timm Bäder [Sun, 30 Apr 2017 18:21:39 +0000 (20:21 +0200)]
widget: remove double assignment
We never read the value we assign here.
Timm Bäder [Sun, 30 Apr 2017 18:20:58 +0000 (20:20 +0200)]
placesview: Remove duplicate GtkMountOperation assignment
we assign a new mount operation a few lines later again.
Timm Bäder [Sun, 30 Apr 2017 18:19:56 +0000 (20:19 +0200)]
levelbar: Don't allocate 0 blocks
Could result in a division by zero later on and doesn't make a lot of
sense anyway.
Timm Bäder [Sun, 30 Apr 2017 17:48:39 +0000 (19:48 +0200)]
gtksettings: Remove unnecessary deprecation guards
Nothing between them is deprecated.
Timm Bäder [Sun, 30 Apr 2017 16:38:10 +0000 (18:38 +0200)]
widget: Fold queue_resize_on_widget into its only caller
Kukuh Syafaat [Sat, 29 Apr 2017 02:08:22 +0000 (02:08 +0000)]
Update Indonesian translation
Emmanuele Bassi [Fri, 28 Apr 2017 22:10:51 +0000 (23:10 +0100)]
wayland: Annotate the log_handler function
The log_handler() internal function is a candidate for the GCC format
attribute for printf-like functions.
Emmanuele Bassi [Fri, 28 Apr 2017 21:56:29 +0000 (22:56 +0100)]
wayland: Add declaration of private get_type() function
Emmanuele Bassi [Fri, 28 Apr 2017 21:55:47 +0000 (22:55 +0100)]
gdk: Make more private functions static
These symbols are not exported and are local to their compilation unit.
Emmanuele Bassi [Fri, 28 Apr 2017 21:47:29 +0000 (22:47 +0100)]
wayland: Mark private function as static
Emmanuele Bassi [Fri, 28 Apr 2017 21:21:19 +0000 (22:21 +0100)]
wayland: Mark private function as static
The selection_lookup_offer_by_atom() function is private to the file and
not used elsewhere.
Emmanuele Bassi [Fri, 28 Apr 2017 20:50:41 +0000 (21:50 +0100)]
build: Don't include the marshallers header file
We used to inject the inclusion of the generated header file into the
generated body of the marshallers source code in order to avoid compiler
warnings about missing prototypes. The glib-genmarshal utility has been
fixed in GLib to include the prototype in the generated source, so now
we're going to trip -Werror=redundant-decls.
Timm Bäder [Fri, 28 Apr 2017 15:11:52 +0000 (17:11 +0200)]
migration guide: Extend GtkBox child property section
Mention the removed expand and fill child properties as well.
Olivier Fourdan [Wed, 26 Apr 2017 13:35:42 +0000 (15:35 +0200)]
wayland: make key event log more explicit
With Wayland, GDK_DEBUG=events would log key events but not explicitly
state whether the event is a key press or release, or if it's
originating from a key repeat.
Add some more verbosity to make sure these informations are logged on
key delivery when GDK_DEBUG is set.
https://bugzilla.gnome.org/show_bug.cgi?id=781767
Timm Bäder [Fri, 28 Apr 2017 09:26:25 +0000 (11:26 +0200)]
frame: Properly initialize clip
GtkCssGadget initializes the content clip to {0, 0, 0, 0}, so we can't
just union the child clip with it.
Timm Bäder [Fri, 28 Apr 2017 09:25:21 +0000 (11:25 +0200)]
grid: Remove unnecessary NULL checks
The minimum and natural pointers passed to measure are never NULL and
that's the only place where we call gtk_grid_get_size_for_size.
Timm Bäder [Thu, 27 Apr 2017 15:54:49 +0000 (17:54 +0200)]
GtkGestureMultiPress: Remove superfluous NULL check
The rect parameter in gtk_gesture_multi_press_set_area is annotated as
nullable and the code handles the rect==NULL case, but the
g_return_if_fail kept that case from ever happening.
Timm Bäder [Thu, 27 Apr 2017 15:52:46 +0000 (17:52 +0200)]
label: Remove dead ternary operator
Timm Bäder [Thu, 27 Apr 2017 13:45:08 +0000 (15:45 +0200)]
headerbar: Compute clip directly
Timm Bäder [Thu, 27 Apr 2017 13:29:13 +0000 (15:29 +0200)]
Fix gdk_rectangle_union calls
Turns out that the destination is the last parameter, not the first one.
This fixes the flickering in the first page of the widget-factory when
using the expander on page 2.
Timm Bäder [Thu, 27 Apr 2017 05:40:14 +0000 (07:40 +0200)]
button: Compute clip directly
Timm Bäder [Wed, 26 Apr 2017 11:43:30 +0000 (13:43 +0200)]
filechooserwidget: Remove always-false error case
_gtk_search_engine_new never returns NULL, it always returns a valid
GObject with at least the simple search engine initialized.
Timm Bäder [Wed, 26 Apr 2017 09:37:58 +0000 (11:37 +0200)]
sidebarrow: Remove useless size group
Nice try, but size groups don't work with invisible widgets anyway.
Invisible widgets request 0×0.
Florian Müllner [Sat, 22 Apr 2017 17:50:11 +0000 (19:50 +0200)]
gdk: Relicense translate_wm_button_layout_to_gtk()
It is generally a good idea to license individual files under the
same terms as the project license (in particular when the mismatch
boils down to having copied the wrong license header), so relicense
the code under the LGPL.
https://bugzilla.gnome.org/show_bug.cgi?id=781422
Piotr Drąg [Wed, 26 Apr 2017 17:44:06 +0000 (19:44 +0200)]
Update Polish translation
Emmanuele Bassi [Wed, 26 Apr 2017 16:28:14 +0000 (17:28 +0100)]
gsk: Mark finalize() implementation as static
Emmanuele Bassi [Wed, 26 Apr 2017 16:27:24 +0000 (17:27 +0100)]
gsk: Mark internal symbol as static
Nothing uses this function outside of GskVulkaneRenderPass.
Emmanuele Bassi [Wed, 26 Apr 2017 16:23:12 +0000 (17:23 +0100)]
gsk: Mark internal symbols as static
These symbols are not used anywhere outside of GskVulkanImage.
Emmanuele Bassi [Wed, 26 Apr 2017 16:21:07 +0000 (17:21 +0100)]
gsk: Mark private symbol as static
The ellipsis_contains_point() function is not used anywhere else.
Stas Solovey [Wed, 26 Apr 2017 14:44:34 +0000 (14:44 +0000)]
Update Russian translation
(cherry picked from commit
edf00914e531f36d611b613b22b8d6ccb72e893a)
Daniel Boles [Wed, 26 Apr 2017 11:18:12 +0000 (12:18 +0100)]
Scale: Fix documentation of digits per last revert
Revert doc changes that were for the behavioural change just reverted.
Add a clarifying note that, under the original behaviour, :digits only
rounds the Adjustment if :draw-value is TRUE at the time of the change.
https://bugzilla.gnome.org/show_bug.cgi?id=781605
https://bugzilla.gnome.org/show_bug.cgi?id=358970
Matthias Clasen [Wed, 26 Apr 2017 10:18:09 +0000 (06:18 -0400)]
Revert "Scale: Always sync ::digits to Range::round-digits"
This reverts commit
4a6bd134bdc192b4830a1c6228e27332d4629418.
This change in behavior broke various things.
https://bugzilla.gnome.org/show_bug.cgi?id=781605
Timm Bäder [Wed, 26 Apr 2017 09:07:40 +0000 (11:07 +0200)]
GskRoundedRect: Include private header file
So we don't have implementations without previous prototypes.
Timm Bäder [Wed, 26 Apr 2017 09:06:55 +0000 (11:06 +0200)]
GskRenderNode: Fix set_scaling_filters function name
The implementation sed _filters while the prototype used _filter.
Timm Bäder [Wed, 26 Apr 2017 09:06:32 +0000 (11:06 +0200)]
GskRenderNode: add missing prototype
Timm Bäder [Tue, 25 Apr 2017 18:55:56 +0000 (20:55 +0200)]
reftests: Remove reference to deleted files
Timm Bäder [Tue, 25 Apr 2017 16:47:42 +0000 (18:47 +0200)]
testdnd2: Don't pass a toplevel to gtk_drag_set_icon_widget
Timm Bäder [Tue, 25 Apr 2017 15:26:49 +0000 (17:26 +0200)]
label: Remove angle property
Timm Bäder [Tue, 25 Apr 2017 13:45:37 +0000 (15:45 +0200)]
label: Move if statement where it makes sense
In the else branch of the if statement before this one, we're assigning
*smallest = *widest anyway, so this if statement is never true. Move it
to the if block before instead, where it can apply.
Timm Bäder [Tue, 25 Apr 2017 13:43:10 +0000 (15:43 +0200)]
label: Remove useless if statements
We never pass nullable pointers into get_size_for_allocation.
Timm Bäder [Tue, 25 Apr 2017 13:39:46 +0000 (15:39 +0200)]
label: Remove useless if statement
The if before this one already makes sure priv->wrap is TRUE.
Timm Bäder [Tue, 25 Apr 2017 13:22:52 +0000 (15:22 +0200)]
gtkmain: Fix code example
gtk_init doesn't take parameters anymore
Timm Bäder [Tue, 25 Apr 2017 09:57:12 +0000 (11:57 +0200)]
label: Don't use gtk_widget_set_simple_clip
The clip returned by gtk_css_gadget_allocate already includes the
box-shadow size and we manually care about the text-shadow size.
Timm Bäder [Tue, 25 Apr 2017 06:11:51 +0000 (08:11 +0200)]
frame: Compute clip directly
Timm Bäder [Mon, 24 Apr 2017 21:11:15 +0000 (23:11 +0200)]
listbox: Compute clips directly
Timm Bäder [Mon, 24 Apr 2017 17:07:59 +0000 (19:07 +0200)]
gtkwidget: Queue a resize on the parent when unparenting
gtk_widget_set_parent (via gtk_widget_reposition_after) will queue a
resize on the parent widget automatically when adding a child widget, so
unparent should do the same
Timm Bäder [Mon, 24 Apr 2017 17:07:15 +0000 (19:07 +0200)]
widget: Fix set_parent/unparent docs to not mention GtkContainer
They can both be used by non-container widgets these days.
Timm Bäder [Mon, 24 Apr 2017 16:23:53 +0000 (18:23 +0200)]
grid: Compute clip directly
Instead of iterating over the children again in
gtk_container_get_children_clip
Timm Bäder [Mon, 24 Apr 2017 16:12:03 +0000 (18:12 +0200)]
container: Use gtk_container_forall less
Just iterate over the child widgets directly and produce a much nicer
stack trace when debugging.
Timm Bäder [Sun, 23 Apr 2017 14:32:28 +0000 (16:32 +0200)]
box: Compute clips directly
Instead of using _gtk_widget_set_simple_clip *and*
gtk_container_get_children_clip
Timm Bäder [Sun, 23 Apr 2017 12:36:36 +0000 (14:36 +0200)]
testsuite: Add widget ordering test case